package com.taotao.vo;

import lombok.Data;

import java.util.Objects;

@Data
public class BaseVO {
    /**
     * 当前页
     */
    private Integer pageNum =1;
    /**
     * 页大小
     */
    private Integer numPerPage =20;

    public Integer getPageNum() {
        return Objects.isNull(pageNum) ? 1 : pageNum;
    }

    public Integer getNumPerPage() {
        return Objects.isNull(numPerPage) ? 20 : numPerPage;
    }
}
